<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld"%>
<script type="text/javascript">
	function projectCostTemplateGridActions(rowObject) {
		return isperp.createGridAction({
			title : '编辑预算项',
			iconCls : 'icon-config',
			onclick : "isperp.openDialog({title:'编辑预算项',windowSize:'big',contentUrl:'project/costTemplate/treeEdit?id=" + rowObject.id + "'})"
		}) + isperp.createGridAction({
			title : '预览模板',
			iconCls : 'icon-preview',
			onclick : "isperp.openDialog({title:'预览模板',windowSize:'big',contentUrl:'project/costTemplate/preview?id=" + rowObject.id + "'})"
			
		});
	}
</script>

<div class="box no-border container_0 clearfix">
	<isperp:grid gridId="projectCostTemplateGrid"
		url="project/costTemplate/listTemplate" showPager="false"
		ondbClickRowEvent="projectCostTemplateGrid.edit(rowid);"
		cusDialogSize="small" cusEditUrl="project/costTemplate/rootEdit"
		showSearchbar="false" actionsWidth="120"
		cusActions="projectCostTemplateGridActions(rowObject);"
		cusDeleteUrl="project/costTemplate/deleteTemplate">
		<jsp:attribute name="toolbar">	
		<isperp:toolbar id="projectCostTemplateGridToolbar">
			<isperp:button id="projectCreate" cssClass="nui-mainbtn" icon="icon-plus" text="新增"
					onclick="projectCostTemplateGrid.create();"></isperp:button> 
		</isperp:toolbar>
		</jsp:attribute>

		<jsp:body> 

		<isperp:column name="id" title="id" hidden="true"></isperp:column>
		<isperp:column name="subjectName" title="名称" width="200">
		</isperp:column>
		<isperp:column name="code" title="编号" width="90">
		</isperp:column>
		<isperp:column name="orderNum" title="排序" width="60">
		</isperp:column>
		</jsp:body>
	</isperp:grid>
</div>
